docs(safe-outputs): fix stale agent-stats footer description - #2197
Closed
github-actions[bot] wants to merge 1 commit into
Closed
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
…te-pull-request Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
This was referenced Sep 18, 2026
Collaborator
|
Integrated into #2238 and validated there. Closing this source PR as superseded by the aggregate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent Documentation Update
Findings
create-pull-request'sinclude-statsoption was documented as appending "(token usage, duration, model)" to the PR description, but the just-merged PR #2195 (fix(safe-outputs): simplify PR metadata footer) changedAgentStats::to_markdownto drop the raw token-count fallback entirely — it now shows AI credits when available (or omits the consumption segment) plus model, tool-call count, and duration. The doc still described the removed token-count format.docs/safe-outputs.mdApplied Fixes
include-statsbullet undercreate-pull-requestto describe the current footer segments (AI credits when available, duration, model, tool calls) instead of the removed "token usage" wording.Notes
Verified against
src/agent_stats.rs::AgentStats::to_markdown(currentmain, post-#2195) and its testtest_to_markdown_omits_consumption_when_no_credits, which confirms token counts are no longer emitted. Checked the equivalentinclude-statsbullets forcomment-on-work-item,create-work-item, and the wiki-page tools — they do not name a specific format, so no change was needed there. Confirmed several other known documentation gaps (container_runtime.rs in AGENTS.md, network.md ecosystem identifiers, ir.md conclusion trigger, ado-script.md, export-bash-scripts flag, prompts permissions-required, dependsOn/condition docs) already have open PRs, so this run targeted a distinct, unaddressed drift.Created by the agent-documentation maintainer workflow.